#ifndef __LISTFILEINFO_H__
#define __LISTFILEINFO_H__

#include"mycp.h"
#include <pthread.h>

#define BUFSIZE 1024

#define MODE_NONE 0
#define MODE_L    1
#define MODE_A    2
#define MODE_I    4
#define MODE_S    8

#define err_exit(func) {perror(func); exit(EXIT_FAILURE);} // 打印出错函数，并结束程序

int get_file_type(char *sourcePath);

void do_ls(char *currentPath,char *targetPath);

void *thread_myls(void *arg);
void *thread_mycp(void *arg);

void create_mycp_thread(char* sourcePath,char *targetPath);
void create_myls_thread(char *sourcePath, char *targetPath);

#endif
